import { http } from '@/utils/http/axios';
import qs from 'qs';

export interface BasicResponseModel<T = any> {
  code: number;
  message: string;
  result: T;
}

/**
 * @description: 结算列表
 */
export function getSettlementPage(params?) {
  return http.request({
    url: '/weight/settlement/page',
    method: 'POST',
    params,
    // 加这个是解决 传递数组时 会在参数名后面加上[]
    paramsSerializer: function (params) {
      return qs.stringify(params, { arrayFormat: 'repeat' });
    },
  });
}
